<?php

/**
 * index.php - Front Controller Pattern
 * All requests to the application will be done through this file, where the application is defined and douting is initiated.
 *
 * @author Sam-Mauris Yong / hellclanner at live dot com
 * @license http://www.opensource.org/licenses/bsd-license New BSD License
 * @package phpraise.core
 * @since 1.2
 */

/**
 * TODO here: modify the include path and point it to where you've put Raise.php
 */
include('../phpraise/Raise.php');

if(class_exists('Raise')){
    Raise::load('core.RaiseApplication');
    $app = new RaiseApplication('phpRaise');
    Raise::app($app);
    $app->execute();
}else{
    echo 'The "Raise" class could not be found. Please make sure that the path to the framework from your application front controller is properly configured.';
}